package com.adam.management.excel;

import java.io.InputStream;
import java.util.List;
import java.util.concurrent.Callable;

public class MyCallable2 implements Callable<List<List<Object>>> {


    private int i;

    private List<List<Object>> readAll;

    public MyCallable2(int sheetIndex, InputStream inputStream) throws Exception {
        readAll = ExcelUtils.readExcel(inputStream,sheetIndex);
        System.out.println("线程"+sheetIndex);
    }

    @Override
    public List<List<Object>> call() throws Exception {

        return readAll;
    }
}
